package com.itheima.Demo01.demo02;

import java.util.concurrent.Callable;
//实现Callable接口带泛型
public class MyCallable implements Callable<String> {
    @Override
    //重写方法
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            //循环
            System.out.println("表白次数"+i);
        }
        //返回值
        return "答应";
    }
}
